/**
 * copyright(c) 2013 www.jiongshibaoliao.com, All Rights Reserved.
 * project: jiongshibaoliao 
 * author: 曾帅
 * date: 2014-1-25 上午10:35:07
 * version: v1.0
 */

package com.jiongshibaoliao.util;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * @project jiongshibaoliao
 * @author 曾帅
 * @version 1.0
 * @date 2014-1-25 上午10:35:07
 */
public class MailAuthenticator extends Authenticator {
	
	private String userName = null;
	
	private String password = null;

	public MailAuthenticator() {
	}

	public MailAuthenticator(String username, String password) {
		this.userName = username;
		this.password = password;
	}

	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(userName, password);
	}
}
